<?php


namespace app\admin\model;
use think\Model;

class Question extends Model
{
    public function update_question_msg($id,$data = [])
    {
        $rule = [
            'id' => $id
        ];
        return $this->allowField(true)->save($data,$rule);
    }
}